<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>X-Brain Agent - 知识库管理</title>
    <link rel="stylesheet" href="css/dark-theme.css">
    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- Font Awesome -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
</head>
<body class="bg-gray-900 text-gray-100">
    <!-- Sidebar -->
    <div class="fixed inset-y-0 left-0 w-64 bg-gray-800 shadow-lg">
        <div class="flex items-center justify-center h-16 bg-gray-700">
            <h1 class="text-xl font-bold">X-Brain Agent</h1>
        </div>
        <nav class="mt-4">
            <a href="index.html" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-home mr-3"></i>
                仪表盘
            </a>
            <a href="knowledge-base.html" class="flex items-center px-6 py-3 bg-gray-700 text-white">
                <i class="fas fa-book mr-3"></i>
                知识库
            </a>
            <a href="chat.html" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-comments mr-3"></i>
                智能对话
            </a>
            <a href="search.html" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-search mr-3"></i>
                语义搜索
            </a>
            <a href="agent.html" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-robot mr-3"></i>
                智能代理
            </a>
            <a href="file-manager.html" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-folder mr-3"></i>
                文件管理
            </a>
            <a href="#" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-cog mr-3"></i>
                系统设置
            </a>
        </nav>
    </div>

    <!-- Main Content -->
    <div class="ml-64 p-8">
        <!-- Header -->
        <header class="flex justify-between items-center mb-8">
            <div>
                <h2 class="text-2xl font-bold">知识库管理</h2>
                <p class="text-gray-400">管理您的知识库资源</p>
            </div>
            <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg flex items-center">
                <i class="fas fa-plus mr-2"></i>
                新建知识库
            </button>
        </header>

        <!-- Search and Filter -->
        <div class="mb-8">
            <div class="flex gap-4">
                <div class="flex-1">
                    <input type="text" placeholder="搜索知识库..." 
                           class="w-full bg-gray-700 text-gray-100 px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
                </div>
                <select class="bg-gray-700 text-gray-100 px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <option>所有分类</option>
                    <option>产品文档</option>
                    <option>技术支持</option>
                    <option>培训资料</option>
                </select>
                <select class="bg-gray-700 text-gray-100 px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <option>最近更新</option>
                    <option>名称</option>
                    <option>大小</option>
                </select>
            </div>
        </div>

        <!-- Knowledge Base Grid -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
            <!-- Knowledge Base Card 1 -->
            <div class="bg-gray-800 rounded-lg shadow-lg overflow-hidden">
                <div class="p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-xl font-semibold">产品文档</h3>
                        <div class="flex gap-2">
                            <button class="text-gray-400 hover:text-white"><i class="fas fa-edit"></i></button>
                            <button class="text-gray-400 hover:text-white"><i class="fas fa-trash"></i></button>
                        </div>
                    </div>
                    <p class="text-gray-400 mb-4">产品技术文档和用户指南。</p>
                    <div class="flex justify-between text-sm text-gray-400">
                        <span>156 个文档</span>
                        <span>2小时前更新</span>
                    </div>
                </div>
                <div class="bg-gray-700 px-6 py-3 flex justify-between items-center">
                    <div class="flex items-center">
                        <span class="w-2 h-2 bg-green-500 rounded-full mr-2"></span>
                        <span>活跃</span>
                    </div>
                    <button class="text-blue-400 hover:text-blue-300">查看详情</button>
                </div>
            </div>

            <!-- Knowledge Base Card 2 -->
            <div class="bg-gray-800 rounded-lg shadow-lg overflow-hidden">
                <div class="p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-xl font-semibold">客户支持</h3>
                        <div class="flex gap-2">
                            <button class="text-gray-400 hover:text-white"><i class="fas fa-edit"></i></button>
                            <button class="text-gray-400 hover:text-white"><i class="fas fa-trash"></i></button>
                        </div>
                    </div>
                    <p class="text-gray-400 mb-4">支持文章和故障排除指南。</p>
                    <div class="flex justify-between text-sm text-gray-400">
                        <span>89 个文档</span>
                        <span>1天前更新</span>
                    </div>
                </div>
                <div class="bg-gray-700 px-6 py-3 flex justify-between items-center">
                    <div class="flex items-center">
                        <span class="w-2 h-2 bg-green-500 rounded-full mr-2"></span>
                        <span>活跃</span>
                    </div>
                    <button class="text-blue-400 hover:text-blue-300">查看详情</button>
                </div>
            </div>

            <!-- Knowledge Base Card 3 -->
            <div class="bg-gray-800 rounded-lg shadow-lg overflow-hidden">
                <div class="p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-xl font-semibold">培训资料</h3>
                        <div class="flex gap-2">
                            <button class="text-gray-400 hover:text-white"><i class="fas fa-edit"></i></button>
                            <button class="text-gray-400 hover:text-white"><i class="fas fa-trash"></i></button>
                        </div>
                    </div>
                    <p class="text-gray-400 mb-4">内部培训文档和学习资源。</p>
                    <div class="flex justify-between text-sm text-gray-400">
                        <span>45 个文档</span>
                        <span>3天前更新</span>
                    </div>
                </div>
                <div class="bg-gray-700 px-6 py-3 flex justify-between items-center">
                    <div class="flex items-center">
                        <span class="w-2 h-2 bg-yellow-500 rounded-full mr-2"></span>
                        <span>维护中</span>
                    </div>
                    <button class="text-blue-400 hover:text-blue-300">查看详情</button>
                </div>
            </div>
        </div>
    </div>

    <script src="js/main.js"></script>
</body>
</html>
